//
//  RHDevParaModel.h
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/3/15.
//

#import "BaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface RHDevParaModel : BaseModel
@property (nonatomic ,copy) NSString *thresholdCode;

@property (nonatomic ,copy) NSString *thresholdName;
//是否展示  0否   1是
@property (nonatomic ,assign) BOOL display;
//是否只读  0是只读  1读写
@property (nonatomic ,assign) BOOL readOnly;
//参数名(作国际化)
@property (nonatomic ,copy) NSString *paramName;
//参数别名(作显示)
@property (nonatomic ,copy) NSString *paramNickName;
//最大值
@property (nonatomic ,copy) NSString *maxValue;
//最小值
@property (nonatomic ,copy) NSString *minValue;
//数据类型
@property (nonatomic ,copy) NSString *dateType;
//单位名称
@property (nonatomic ,copy) NSString *unitName;
//是否枚举
@property (nonatomic ,assign) NSInteger isEnum;
//枚举字符串
@property (nonatomic ,copy) NSString *enums;
//枚举值字符串   通过 enums 拆分而成
@property (nonatomic ,copy) NSArray *enumArr;

@property (nonatomic ,copy) NSString *enumNames;

@property (nonatomic ,copy) NSArray *enumNameArr;
//当前值
@property (nonatomic ,copy) NSString *currentValue;
//加减步进
@property (nonatomic ,copy)NSString *step;
//寄存器地址
@property (nonatomic ,assign) NSInteger regAddr;
//位宽
@property (nonatomic ,assign) NSInteger num;
//偏移量
@property (nonatomic ,assign) NSInteger offset;

@property (nonatomic ,copy) NSArray <RHDevParaModel *> *thresholdParamConfigVos;

//参数多语言
@property (nonatomic ,copy)NSString *i18n;
//枚举多语言
@property (nonatomic ,copy)NSString *enumI18n;
//参数多语言
@property (nonatomic ,copy)NSDictionary *paramLanguageDic;
//枚举多语言
@property (nonatomic ,copy)NSDictionary *enumLanguageDic;

@property (nonatomic, assign) BOOL canCommit;//针对233 一组数据中出现32767异常温度值时,如果一组有一个或多个温度数据全是32767
@end

NS_ASSUME_NONNULL_END
